#ifndef __COMMON_H__
#define __COMMON_H__
#include <rtthread.h>

typedef struct
{
    rt_int32_t voice_times;
    rt_int32_t temperature;
    rt_int32_t humidity;
    rt_int32_t illuminance;
    rt_int32_t motor;
    rt_uint8_t colour_buff[16];
    rt_uint8_t ir_study_code[8];
    rt_uint8_t ir_send[8];
    rt_uint8_t light;
    rt_uint8_t led_red;
    rt_uint8_t led_green;
    rt_uint8_t led_blue;
    
}All_Data_Struct;

extern All_Data_Struct s_m_current_data;

extern void LED_RGB_Control(uint8_t r,uint8_t g,uint8_t b);
extern void GoKit_RGB_led_Init();
extern void Update_RGB_led_Status();

extern void upload_sensor_data();

#endif